<?php
include_once '../../../Core/Conexion.php';
include_once '../../../Core/Controlador.php';
include_once '../../../Core/InterfazDatos.php';
include_once '../../../Core/../Admin/entidades/Alumno.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Grabar
 *
 * @author home
 */
class ConsultaCodigo  extends Controlador
{
   function __construct() {
        parent::__construct();
    }
    
    public function ejecutar() 
    {
       $lista=$this->conexion->consultaLibre("SELECT * FROM ALUMNO WHERE IDALUMNO='".$_REQUEST['codigo']."'");
       $fila=  mysql_fetch_array($lista);
       $total=  mysql_num_rows($lista);
       //echo $total;
       if($total==0)
       {
           echo "no hay existe";
       }
       else
       {
           echo $fila[0]."] ".$fila[1]."]".$fila[2]." ".$fila[3];
                       
       } 
    }    
}

$controlador=new ConsultaCodigo ();
$controlador->ejecutar();
 
?> 
